﻿
#ifndef PT_MBUS_PUBLISH_H
#define PT_MBUS_PUBLISH_H
#include <pt.h>
#include <stdbool.h>
#include <stdint.h>
#include "pt_mbus.h"

/**
@brief pt_mbus_publish
@param[in] topic id
@param[in] len Size of data available
@param[in] data content of data
@retval PT_EOK if successful, otherwise return error number < 0.
*/
int32_t pt_mbus_publish(int topic_id, uint32_t len, void *data);

/**
@brief pt_mbus_fast_publish
@param[in] topic id
@param[in] len Size of data available
@param[in] data content of data
@retval void
*/
void pt_mbus_fast_publish(int topic_id, uint32_t len, void *data);

#endif

